import { getList } from "../../request/getList";
export const useBodyHttpHook = () => {
  const list = ref([]);
  getList().then(
    (res) => {
      // console.log(res)
      list.value = res.playlists;
      list.value.forEach((item) => {
        item.isSelected = false;
      });
    },
    (err) => {
      console.log(err);
    }
  );
  return { list };
};
